//
//  MineViewController.m
//  solarMan
//
//  Created by 范桂盛 on 2016/12/13.
//  Copyright © 2016年 solar. All rights reserved.
//

#import "MineViewController.h"
#import <Masonry.h>

@interface MineViewController ()
@property (nonatomic, strong) UIButton *exitButton;
@end

@implementation MineViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"Profile";
    
    UIButton *exitButton = [UIButton new];
    [exitButton setTitle:@"Logout" forState:UIControlStateNormal];
    [exitButton setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    [exitButton setTitleColor:[UIColor grayColor] forState:UIControlStateDisabled];
    [exitButton addTarget:self action:@selector(exitButtonClick) forControlEvents:UIControlEventTouchUpInside];
    self.exitButton = exitButton;
    [self.view addSubview:self.exitButton];
    [self.exitButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(100, 30));
        make.centerX.mas_equalTo(self.view.mas_centerX);
        make.bottom.mas_equalTo(self.view.mas_bottom).offset(-80);
    }];

    
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
}

- (void)exitButtonClick
{

}

@end
